<?php

$username = $_POST['username'];
$password = $_POST['password'];

include("opendb.php");
include("functions.php");

//$squery = "select * from Users where Username='".$username."' and Password='".$password."'";

$squery = "select * from Users where Username='".$username."' and Password='".$password."' and disp_profile != 'No'";

$result = mysql_query($squery); 
if(mysql_num_rows($result))
{
echo 1;
}
else
{
echo 0;
}


?>